package com.voltmao.webpro.frame.view;

import com.voltmao.webpro.frame.dto.ApiResult;
import com.voltmao.webpro.frame.exception.WebProViewException;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by zhouyang on 2018/1/20.
 */
public interface IFromOrderView {

    /**
     * 根据ID查询数据
     *
     * @param request
     * @param modeType 操作类型
     * @return
     * @throws WebProViewException
     */
    Object formSearchByKeyId(HttpServletRequest request, String modeType) throws WebProViewException;

    /**
     * 增加与修改事件
     *
     * @param request
     * @param apiResult
     * @return
     * @throws WebProViewException
     */
    Object formInsertOrUpdate(HttpServletRequest request, String modeType, ApiResult apiResult) throws WebProViewException;

    /**
     * 删除事件
     *
     * @param request
     * @return
     */
    Object apiDeleteKeys(HttpServletRequest request, String modeType, ApiResult apiResult) throws WebProViewException;
}
